﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Quan_Ly_Phong_Kham_co_len_em
{
    using System.Windows.Forms;

  public  class TV_Tonghop
    {

      public static void Themcot(string tenCot, string tieuDe, DataGridView view,DataGridViewAutoSizeColumnMode mode = DataGridViewAutoSizeColumnMode.Fill, bool anHien = true)
      {
          DataGridViewTextBoxColumn col = new DataGridViewTextBoxColumn();
          col.AutoSizeMode = mode;
          col.Visible = anHien;
          col.DataPropertyName = tenCot;
          col.Name = col.DataPropertyName;
          col.HeaderText = tieuDe;
          view.Columns.Add(col);
      }
    }
}
